package com.nullpointer.playerinfo.common.exception;

public enum ExceptionEnum {
    PLAYER_NOFOUND("1001", "找不到该玩家"),
    DATABASE_MESSAGE_ERROR("1002", "数据库语句错误"),
    VALIDATION_ERROR("1003", "参数校验失败");

    private final String code;
    private final String message;

    ExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
